window.onload = function () {
    changePattern();
    // 登录用户信息
    var myinfo = getSession("data");
    var avatar=document.getElementById("avatar");
    var name=document.getElementById("name");
    avatar.src="http://www.rushmc.top/" + myinfo.photo;
    name.innerHTML=myinfo.name;
    var dynamicWrapper = document.getElementById("dynamic-wrapper");
    var obj=getSession("searchresult");
    createNode(obj,"",dynamicWrapper);
    var up=document.getElementById("up");
    search();
    moveup(up);
}